<?php $this -> load -> view('header'); ?>
<?= anchor('project_manager', '&lt;&lt; Go back') ?>
<?=form_open("project_manager/manageProject") ?>
<input type="hidden" value="<?= $id ?>" name="pid" />
<h2>Project properties</h2>
<label for="name">Project name:</label><input type="text" name="name" value="<?= $name ?>" id="name" /><br />
<label for="status">Project status:</label><input type="text" name="status" value="<?= $status ?>" id="status" /><br />
<label for="description">Project description:</label><textarea name="description" cols="60" rows="10"><?= $description ?></textarea><br />
<h2>People involved in this project</h2>
<table style="min-width: 75%">
<?php $loop = 0; foreach($users as $user): $loop++;
if($loop % 3 == 0)
	echo ("<tr>");
?>

<td><input type="checkbox" name="user[]" 
<?php if(array_search($user['id'], $involved) !== FALSE) echo "checked=\"checked\""; ?>
value="<?= $user['id'] ?>" /><?= $user['firstname'] ?> <?= $user['surname'] ?></td>

<?php
if($loop % 3 == 2)
	echo ("</tr>");
endforeach; ?>
</table>
<p align="center"><input type="submit" value="Submit!" style="width: 300px" /></p>
</form>
<?php $this -> load -> view('footer'); ?>